package com.wangjw.cxf;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by wangjw on 18/6/26.
 */
public class Client {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring/spring-cxf.xml");

        HelloService helloService = context.getBean("helloService", HelloService.class);
        String result = helloService.say("hello");
        System.out.println(result);
    }
}
